.class public Lcom/vividsolutions/jts/index/quadtree/Root;
.super Lcom/vividsolutions/jts/index/quadtree/NodeBase;
.source "Root.java"


# static fields
.field private static final origin:Lcom/vividsolutions/jts/geom/Coordinate;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .line 51
    new-instance v0, Lcom/vividsolutions/jts/geom/Coordinate;

    const-wide/16 v1, 0x0

    invoke-direct {v0, v1, v2, v1, v2}, Lcom/vividsolutions/jts/geom/Coordinate;-><init>(DD)V

    sput-object v0, Lcom/vividsolutions/jts/index/quadtree/Root;->origin:Lcom/vividsolutions/jts/geom/Coordinate;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 54
    invoke-direct {p0}, Lcom/vividsolutions/jts/index/quadtree/NodeBase;-><init>()V

    return-void
.end method

.method private insertContained(Lcom/vividsolutions/jts/index/quadtree/Node;Lcom/vividsolutions/jts/geom/Envelope;Ljava/lang/Object;)V
    .locals 5

    .line 98
    invoke-virtual {p1}, Lcom/vividsolutions/jts/index/quadtree/Node;->getEnvelope()Lcom/vividsolutions/jts/geom/Envelope;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/vividsolutions/jts/geom/Envelope;->contains(Lcom/vividsolutions/jts/geom/Envelope;)Z

    move-result v0

    invoke-static {v0}, Lcom/vividsolutions/jts/util/Assert;->isTrue(Z)V

    .line 104
    invoke-virtual {p2}, Lcom/vividsolutions/jts/geom/Envelope;->getMinX()D

    move-result-wide v0

    invoke-virtual {p2}, Lcom/vividsolutions/jts/geom/Envelope;->getMaxX()D

    move-result-wide v2

    invoke-static {v0, v1, v2, v3}, Lcom/vividsolutions/jts/index/quadtree/IntervalSize;->isZeroWidth(DD)Z

    move-result v0

    .line 105
    invoke-virtual {p2}, Lcom/vividsolutions/jts/geom/Envelope;->getMinY()D

    move-result-wide v1

    invoke-virtual {p2}, Lcom/vividsolutions/jts/geom/Envelope;->getMaxY()D

    move-result-wide v3

    invoke-static {v1, v2, v3, v4}, Lcom/vividsolutions/jts/index/quadtree/IntervalSize;->isZeroWidth(DD)Z

    move-result v1

    if-nez v0, :cond_1

    if-eqz v1, :cond_0

    goto :goto_0

    .line 110
    :cond_0
    invoke-virtual {p1, p2}, Lcom/vividsolutions/jts/index/quadtree/Node;->getNode(Lcom/vividsolutions/jts/geom/Envelope;)Lcom/vividsolutions/jts/index/quadtree/Node;

    move-result-object p1

    goto :goto_1

    .line 108
    :cond_1
    :goto_0
    invoke-virtual {p1, p2}, Lcom/vividsolutions/jts/index/quadtree/Node;->find(Lcom/vividsolutions/jts/geom/Envelope;)Lcom/vividsolutions/jts/index/quadtree/NodeBase;

    move-result-object p1

    .line 111
    :goto_1
    invoke-virtual {p1, p3}, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->add(Ljava/lang/Object;)V

    return-void
.end method


# virtual methods
.method public insert(Lcom/vividsolutions/jts/geom/Envelope;Ljava/lang/Object;)V
    .locals 3

    .line 62
    sget-object v0, Lcom/vividsolutions/jts/index/quadtree/Root;->origin:Lcom/vividsolutions/jts/geom/Coordinate;

    invoke-static {p1, v0}, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->getSubnodeIndex(Lcom/vividsolutions/jts/geom/Envelope;Lcom/vividsolutions/jts/geom/Coordinate;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 65
    invoke-virtual {p0, p2}, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->add(Ljava/lang/Object;)V

    return-void

    .line 72
    :cond_0
    iget-object v1, p0, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->subnode:[Lcom/vividsolutions/jts/index/quadtree/Node;

    aget-object v1, v1, v0

    if-eqz v1, :cond_1

    .line 78
    invoke-virtual {v1}, Lcom/vividsolutions/jts/index/quadtree/Node;->getEnvelope()Lcom/vividsolutions/jts/geom/Envelope;

    move-result-object v2

    invoke-virtual {v2, p1}, Lcom/vividsolutions/jts/geom/Envelope;->contains(Lcom/vividsolutions/jts/geom/Envelope;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 79
    :cond_1
    invoke-static {v1, p1}, Lcom/vividsolutions/jts/index/quadtree/Node;->createExpanded(Lcom/vividsolutions/jts/index/quadtree/Node;Lcom/vividsolutions/jts/geom/Envelope;)Lcom/vividsolutions/jts/index/quadtree/Node;

    move-result-object v1

    .line 80
    iget-object v2, p0, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->subnode:[Lcom/vividsolutions/jts/index/quadtree/Node;

    aput-object v1, v2, v0

    .line 86
    :cond_2
    iget-object v1, p0, Lcom/vividsolutions/jts/index/quadtree/NodeBase;->subnode:[Lcom/vividsolutions/jts/index/quadtree/Node;

    aget-object v0, v1, v0

    invoke-direct {p0, v0, p1, p2}, Lcom/vividsolutions/jts/index/quadtree/Root;->insertContained(Lcom/vividsolutions/jts/index/quadtree/Node;Lcom/vividsolutions/jts/geom/Envelope;Ljava/lang/Object;)V

    return-void
.end method

.method protected isSearchMatch(Lcom/vividsolutions/jts/geom/Envelope;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method
